class Solution(object):
    def prefixCount(self, words, pref):
        m = len(pref)
        return sum([len(word) >= m and word[:m] == pref for word in words])
